<?php

class Composant{

	/*attributs*/
	var $id;
	var $nom;
	var $desc;
	var $img;
	var $qteStock;
	var $qteAlerte;



	function getId(){
		return $this->id;	
	}

	function setId($p_id){
		$this->id=$p_id;	
	}

	function getNom(){
		return $this->nom;	
	}

	function setNom($p_nom){
		$this->nom=$p_nom;	
	}
	
	function getDesc(){
		return $this->desc;	
	}

	function setDesc($p_desc){
		$this->desc=$p_desc;	
	}
	
	function getImg(){
		return $this->img;	
	}

	function setImg($p_img){
		$this->img=$p_img;
	}

	function getQteStock(){
		return $this->qteStock;	
	}

	function setQteStock($p_qstock){
		$this->qteStock=$p_qstock;
	}

	function getQteAlerte(){
		return $this->qteAlerte;	
	}

	function setQteAlerte($p_qalrt){
		$this->qteAlerte=$p_qalrt;	
	}

	function toString(){
		return "Composant [id=".$this->id.", nom=".$this->nom.", desc=".$this->desc.", img=".$this->img.", qteStock=".$this->qteStock.", qteAlerte=".$this->qteAlerte."]";
	}
}







?>
